<!DOCTYPE html>
<html>
<head>
  <title>RubyChina - Control Panel</title>
  <link rel="shortcut icon" href="<%= asset_path("big_logo.png") %>" />
  <%= stylesheet_link_tag "cpanel" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tag %>
</head>
<body>
  <div class="topbar" data-dropdown="dropdown">
    <div class="topbar-inner">
      <div class="container">
        <%= link_to("控制台", cpanel_root_path, :class => "brand")%>
        <%= render_list :class => "nav" do |li|
          li << link_to(t("cpanel.menu.root_path"), cpanel_root_path)
          li << link_to(t("cpanel.menu.site_configs"), cpanel_site_configs_path )
          li << link_to(t("cpanel.menu.users"),cpanel_users_path)
          li << link_to(t("cpanel.menu.sections"), cpanel_sections_path )
          li << link_to(t("cpanel.menu.nodes"), cpanel_nodes_path )
          li << link_to(t("cpanel.menu.posts"),cpanel_posts_path )
          li << link_to(t("cpanel.menu.wiki"),cpanel_pages_path )
          li << link_to(t("cpanel.menu.topics"), cpanel_topics_path)
          li << link_to(t("cpanel.menu.replies"), cpanel_replies_path)
          li << link_to(t("cpanel.menu.comments"),cpanel_comments_path )
          li << link_to(t("cpanel.menu.photos"),cpanel_photos_path )
          li << link_to(t("cpanel.menu.site_nodes"),cpanel_site_nodes_path )
          li << link_to(t("cpanel.menu.sites"),cpanel_sites_path )
        end  %>

        <ul class="nav secondary-nav" id="userbar">
          <li>
            <a href="#" class="dropdown-toggle"><%= current_user.login %></a>
            <ul class="dropdown-menu">
              <li><%= link_to("回到前台", root_path)%></li>
            </ul>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="container">
    <div class="breadcrumb">
      <a href="<%= cpanel_root_path %>">Root</a> &gt;
      <%= yield :sitemap %>
    </div>
    <div id="main" class="box">
      <%= notice_message %>
      <%= yield %>
    </div>
  </div>
  <footer class="footer">
    <div class="container">
      <p class="suggest">使用 <a href="http://www.mozillaonline.com/" target="_blank" rel="nofollow">Firefox</a> 或 <a href="http://www.google.com/chrome" target="_blank" rel="nofollow">Chrome</a> 瀏覽訪問本站將會獲得更佳的視覺體驗.</p>
    </div>
  </footer>
</body>
</html>
